//
//  PostViewController.h
//  AgriMobile
//
//  Created by 春名 啓作 on 11/05/15.
//  Copyright 2011 e-agri. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StaticPickerController.h"

typedef enum {
	ImgButton1,
	ImgButton2,
	ImgButton3
} ButtonType;


@interface PostViewController : UIViewController 
	<UITextFieldDelegate, UITextViewDelegate, UIAlertViewDelegate, UIActionSheetDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate>
{
	IBOutlet UITextField*	txtTitle;
	IBOutlet UITextView*	txtBody;

	IBOutlet UIButton	*imgBtn1;
	IBOutlet UIButton	*imgBtn2;
	IBOutlet UIButton	*imgBtn3;
	IBOutlet UIImageView	*imgView;

	IBOutlet UILabel*		lblCategory;
	IBOutlet UIButton*		btnCategory;
	IBOutlet UILabel*		lblPublishCaption;
	IBOutlet UILabel*		lblPublishValue;
	IBOutlet UIButton*		btnPublish;	

	NSString *topicId;
}
@property(nonatomic, retain) NSString *topicId;

- (IBAction)showCameraSheet:(id)sender;

- (IBAction)postTopic;
- (void)submitPost;
- (void)alertView:(UIAlertView*) alertView clickedButtonAtIndex:(NSInteger)buttonIndex ;
- (UIImage*)resizeImage:(UIImage*)image resizeRatio:(float)ratio;

- (IBAction)chooseCategory:(id)sender;
- (IBAction)choosePublish:(id)sender;

@end
